package com.work.simpleFactory;

import com.work.simpleFactory.HTvFactory;
import com.work.simpleFactory.HxTvFactory;
import com.work.simpleFactory.TvFactory;

/**
 * @author zsj
 * @date 2023/10/10 21:29
 */
public class Test {

    public static void main(String[] args) {
        Tv hx = Factory.createTV("HX");
        Tv h = Factory.createTV("H");
        hx.play();
        h.play();
    }
}
